﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Liger.Web.Common;
using Liger.Web.Common.Extensions;

namespace Liger.Web.UI
{
    public class HideTipBuilder : UIComponentBuilderBase, IHideObjectMembers
    {
        private HideTip HideTip
        {
            get
            {
                return this.Component as HideTip;
            }
        }


        public HideTipBuilder()
            : base(new HideTip())
        {

        }

        public HideTipBuilder(HideTip HideTip)
            : base(HideTip)
        {

        }

        /// <summary>
        /// 设置属性
        /// </summary>
        /// <param name="property"></param>
        /// <param name="value"></param>
        /// <returns></returns>
        public HideTipBuilder Set(string property, object value)
        {
            if (this.HideTip.Properties.ContainsKey(property))
            {
                this.HideTip.Properties[property] = value;
            }
            else
            {
                this.HideTip.Properties.Add(property, value);
            }
            return this;
        }

        /// <summary>
        /// 返回ligerHideTip的Manager
        /// </summary>
        /// <param name="manager">manager的对象名</param>
        /// <returns></returns>
        public HideTipBuilder Manager(string manager)
        {
            this.HideTip.Manager = manager;
            return this;
        }


    }
}